package com.lam.code.controller;

import com.lam.code.base.domain.ReturnT;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Lam
 * @description TODO
 * @date 2019/12/28 22:31
 */
@RestController
@RequestMapping("/article")
public class ArticleController {

    @RequiresRoles("admin")
    @GetMapping("/list")
    public ReturnT list(){
        return ReturnT.success("hello,article.list");
    }

}
